package com.gxa.saas.portal.service;

import com.gxa.saas.portal.entity.vo.wylvo.GoodsVo;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface WGoodsService {
    public List<GoodsVo> goodsData(Integer id);

    public BigDecimal selectAsset(Integer id);

    public List<GoodsVo> changeCategory(Integer id,String  category);
    public List<GoodsVo> selectGoods(Integer id,String  goods);
    public void updateState(Integer shopid,Integer  id,Integer status);
    public void updateStateDown(Integer shopid,Integer id,Integer status);
    //查询商品编号
    public String selectPrid(Integer id);

    public void updateGoods( GoodsVo goods);

    //创建商品前的类别查询；
    public List<String> selectCategory();

    public void creategoods(GoodsVo goods);

    //根据商铺账号查询商铺id
    public Integer selectShopId(String sid);

    //图片的存储
    public void instrtPic(String pic,Integer proid);

    //图片的修改
    public void updatePic(String pic,Integer proid);

    //图片存储前的id查询
    public Integer selectByProId(String proid);
}
